package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.ReportView
import hlhj.fhp.checkpoint.javaBean.MyBaseBean
import hlhj.fhp.checkpoint.module.ReportModule

/**
 * Created by Never Fear   on 2018\11\13 0013.
Never More....
 */
class ReportPresenter :BasePresenter<ReportModule,ReportView>(), ReportModule.ReportListener {
    override fun addReportResp(myBaseBean: MyBaseBean) {
        view?.addReportResp(myBaseBean)
    }

    fun addReport(c:Context,content:String){
        module?.addReport(c, content)
    }
    override fun createModule() {
        module=ReportModule()
        module.listener=this
    }
}